<?php
namespace Clover\Controller;

use Think\Controller;

class IndexController extends BaseController
{
    public function index()
    {
        $login_status = D("Admin")->get_login_status();
        if ($login_status) {
            $this->redirect('/Clover/news');
        } else {
            $this->redirect('/Clover/login');
        }

    }
}